package lab02.test11;

public class Square extends Rectangle {

    double length;

    double diagonal() {
        return length * length * 2;
    }

    @Override
    public void printMyWay() {
        System.out.println("the Square's is"+length);
        System.out.println("the Square's is"+area());
        System.out.println("the Square's is"+perimeter());
        System.out.println("the Square's is"+diagonal());
    }
}
